package org.dromara.Nyt7PlotDetailInfo.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.Nyt7FarmerInsuranceInfo.domain.Nyt7FarmerInsuranceInfo;
import org.dromara.Nyt7PlotDetailInfo.domain.Nyt7PlotDetailInfo;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 地块详细信息业务对象 nyt_7_plot_detail_info
 *
 * @author Lion Li
 * @date 2024-12-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Nyt7PlotDetailInfo.class, reverseConvertGenerate = false)
public class Nyt7PlotDetailInfoExBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 地块编码
     */
    @NotBlank(message = "地块编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String plotCode;

    /**
     * 投保面积
     */
    @NotNull(message = "投保面积不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long insuredArea;

    /**
     * 实测面积
     */
    @NotNull(message = "实测面积不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long measuredArea;

    /**
     * 农户if
     */
    @NotNull(message = "农户名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String farmerId;

    /**
     * 确权状态
     */
    @NotBlank(message = "确权状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String confirmationStatus;

    /**
     * 经度坐标
     */
    @NotBlank(message = "经度坐标不能为空", groups = { AddGroup.class, EditGroup.class })
    private String latitude;

    /**
     * 纬度坐标
     */
    @NotBlank(message = "纬度坐标不能为空", groups = { AddGroup.class, EditGroup.class })
    private String longitude;

//    /**
//     * 区域边界
//     */
//    @NotBlank(message = "区域边界不能为空", groups = { AddGroup.class, EditGroup.class })
//    private String regionBoundary;

    /**
     * 市
     */
    @NotBlank(message = "市不能为空", groups = { AddGroup.class, EditGroup.class })
    private String city;

    /**
     * 县
     */
    @NotBlank(message = "县不能为空", groups = { AddGroup.class, EditGroup.class })
    private String districtCounty;

    /**
     * 乡
     */
    @NotBlank(message = "乡不能为空", groups = { AddGroup.class, EditGroup.class })
    private String town;

    /**
     * 村
     */
    @NotBlank(message = "村不能为空", groups = { AddGroup.class, EditGroup.class })
    private String village;

    private Nyt7FarmerInsuranceInfo farmerInsuranceInfo;
}
